package com.wx.plugin.repository;


import com.yangzcp.userpojo.Trans;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface TransRepository extends JpaRepository<Trans, Integer>{

    @Query("from Trans where one_sale_id=?1")
    public List<Trans> findByOneTeamTrans(Integer id);

    @Query("from Trans where tow_sale_id=?1")
    public List<Trans> findByTwoTeamTrans(Integer id);
}
